package com.lee.member.mapper;

import com.lee.member.entity.UnionLogin;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @author zfl_a
 * @date 2020/4/5
 * @project login-authorization-parent
 */
public interface UnionLoginMapper {

    @Select("SELECT id AS id ,union_name AS  unionName ,\n" +
            "union_public_id AS unionPublicId, union_bean_Id as unionBeanId, app_id AS appId,\n" +
            "app_key AS appKey,redirect_uri as redirectUrl,\n" +
            "request_address as requestAddress,is_availability as isAvailability\n" +
            " FROM union_login where union_public_id=#{unionPublicId} and is_availability='1'")
    UnionLogin selectByUnionLoginId(@Param("unionPublicId") String unionPublicId);
}
